package com.frejoys.common.vo.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class LoginVo {

    @Schema(type = "Long", name = "userId", description = "用户id", required = true, defaultValue = "347634044899328")
    private Long userId;

    @Schema(type = "String", name = "nickname", description = "昵称", required = true, defaultValue = "张三")
    private String nickname;

    @Schema(type = "String", name = "avatar", description = "头像", required = true, defaultValue = "")
    private String avatar;

    // @Schema(type = "String", name = "countryCode", description = "电话：电话区号；邮箱：邮箱名称")
    // private String countryCode;
    //
    // @Schema(type = "String", name = "account", description = "账号：电话或邮箱")
    // private String account;

    // @Schema(type = "Integer", name = "type", description = "账号类型：1电话，2邮箱")
    // private Integer type;


    @Schema(type = "Integer", name = "role", required = true, description = "角色：0普通用户，1达人，2代理人，4商家")
    private Integer role;

    @Schema(type = "Integer", name = "createTime", description = "创建时间", required = true, defaultValue = "1700914151")
    private Integer createTime;

    @Schema(type = "Integer", name = "lastLoginTime", description = "最后登录时间", required = true, defaultValue = "1700914151")
    private Integer lastLoginTime;

    @Schema(type = "String", name = "token", description = "登录token", required = true, defaultValue = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MDE3Nzg2NjksInVzZXJJZCI6MzQ3NjM0MDQ0ODk5MzI4fQ.ZxnU7FrYhfHN_TkP5YNISeJGmYE4IsRQRVgiZ4VZdm0")
    private String token;

}
